
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <link rel="stylesheet" href="prism.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div id="header">
      <div class="doc-title"><a href="folktale.html"><span class="doc-title"><span class="product-name">Folktale</span><span class="version">v2.3.0</span></span></a><ul class="navigation"><li class="navigation-item"><a href="https://github.com/origamitower/folktale" title="">GitHub</a></li><li class="navigation-item"><a href="/docs/support/" title="">Support</a></li><li class="navigation-item"><a href="/docs/v2.3.0/contributing/" title="">Contributing</a></li></ul></div>
    </div>
    <div id="content-wrapper"><div id="content-panel"><h1 class="entity-title">(Anonymous)</h1><div class="highlight-summary"><div><p>A container for methods of Futures.</p>
</div></div><h2 class="section-title">Documentation</h2><div class="documentation"><div><p>A container for methods of Futures.</p>
</div></div><div class="members"><h2 class="section-title" id="properties">Properties</h2><div class="member-category"><h3 class="category" id="cat-converting-to-other-types">Converting to other types</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future.topromise.html">toPromise: value()</a><div class="doc-summary"><div><p>Converts a Future into a Promise.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-debugging">Debugging</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future.inspect.html">inspect: value()</a><div class="doc-summary"><div><p>Returns a textual representation of the Future.</p>
</div></div><div class="special-tags"><span class="tagged experimental">Experimental</span></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future.tostring.html">toString: value()</a><div class="doc-summary"><div><p>Returns a textual representation of the Future.</p>
</div></div><div class="special-tags"><span class="tagged experimental">Experimental</span></div></div></div></div><div class="member-category"><h3 class="category" id="cat-fantasy-land">Fantasy Land</h3><div class="member-list"><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.future._future.ap.html">ap(that)</a><div class="doc-summary"><div><p>Part of the Applicative instance for Fantasy Land 1.x. See the <code>apply</code> method for details.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.future._future.fantasy-land-ap.html">fantasy-land/ap(that)</a><div class="doc-summary"><div><p>Part of the Applicative instance for Fantasy Land 2.x+. See the <code>apply</code> method for details.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.future._future.prototype.fantasy-land-bimap.html">fantasy-land/bimap(f, g)</a><div class="doc-summary"><div><p>Part of the Bifunctor instance for Fantasy Land 2.x+. See the <code>bimap</code> method for details.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.future._future.prototype.fantasy-land-chain.html">fantasy-land/chain(transformation)</a><div class="doc-summary"><div><p>Part of the Monad instance for Fantasy Land 2.x+. See the <code>chain</code> method for details.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.future._future.prototype.fantasy-land-map.html">fantasy-land/map(transformation)</a><div class="doc-summary"><div><p>Part of the Functor instance for Fantasy Land 2.x+. See the <code>map</code> method for details.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-internal-fields">Internal Fields</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future._listeners.html">get _listeners</a><div class="doc-summary"><div><p>A list of visitors to be invoked when the state of the future changes.</p>
</div></div><div class="special-tags"><span class="tagged required">Abstract</span></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future._state.html">get _state</a><div class="doc-summary"><div><p>The current state of the Future.</p>
</div></div><div class="special-tags"><span class="tagged required">Abstract</span></div></div></div></div><div class="member-category"><h3 class="category" id="cat-pattern-matching">Pattern Matching</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future.willmatchwith.html">willMatchWith: value(pattern)</a><div class="doc-summary"><div><p>Limited pattern matching for futures.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-reacting-to-futures">Reacting to Futures</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future.listen.html">listen: value(pattern)</a><div class="doc-summary"><div><p>Adds a visitor to the Future, which will be invoked when the Future&#39;s state changes.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-recovering-from-errors">Recovering From Errors</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future.orelse.html">orElse: value(handler)</a><div class="doc-summary"><div><p>Transforms a failed future into a new future.</p>
</div></div><div class="special-tags"></div></div><div class="member deprecated"><a class="member-name" href="folktale.concurrency.future._future.recover.html">recover: value(handler)</a><div class="doc-summary"><div><p>Transforms a failed future into a new future.</p>
</div></div><div class="special-tags"><span class="tagged deprecated">Deprecated</span></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future.swap.html">swap: value()</a><div class="doc-summary"><div><p>Inverts the state of a Future: successes become failures, failures become successes.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-transforming">Transforming</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future.apply.html">apply: value(future)</a><div class="doc-summary"><div><p>Transforms the succesful value of a future by using a function stored in another future.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future.bimap.html">bimap: value(rejectionTransformation, successTransformation)</a><div class="doc-summary"><div><p>Transforms both successful and failure values in a Future, without touching its state.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future.chain.html">chain: value(transformation)</a><div class="doc-summary"><div><p>Transforms a Future&#39;s successful value along with its state.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future.map.html">map: value(transformation)</a><div class="doc-summary"><div><p>Transforms the successful value of a Future, without touching its state.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="folktale.concurrency.future._future.maprejected.html">mapRejected: value(transformation)</a><div class="doc-summary"><div><p>Transforms failure values in a Future without touching its state.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-types">Types</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.future._future._future.html">constructor()</a><div class="doc-summary"><div><p>Models the eventual result of asynchronous computations.</p>
</div></div><div class="special-tags"></div></div></div></div></div></div><div id="meta-panel"><div class="meta-section"><div class="meta-field"><strong class="meta-field-title">Stability</strong><div class="meta-field-value">deprecated</div></div></div><div class="table-of-contents"><div class="meta-section-title">On This Page</div><ul class="toc-list level-1"><li class="toc-item"><span class="no-anchor">Documentation</span><ul class="toc-list level-2"></ul></li><li class="toc-item"><a href="#properties">Properties</a><ul class="toc-list level-2"><li class="toc-item"><a href="#cat-converting-to-other-types">Converting to other types</a></li><li class="toc-item"><a href="#cat-debugging">Debugging</a></li><li class="toc-item"><a href="#cat-fantasy-land">Fantasy Land</a></li><li class="toc-item"><a href="#cat-internal-fields">Internal Fields</a></li><li class="toc-item"><a href="#cat-pattern-matching">Pattern Matching</a></li><li class="toc-item"><a href="#cat-reacting-to-futures">Reacting to Futures</a></li><li class="toc-item"><a href="#cat-recovering-from-errors">Recovering From Errors</a></li><li class="toc-item"><a href="#cat-transforming">Transforming</a></li><li class="toc-item"><a href="#cat-types">Types</a></li></ul></li></ul></div><div class="meta-section"><strong class="meta-section-title">Authors</strong><div class="meta-field"><strong class="meta-field-title">Authors</strong><div class="meta-field-value"><ul class="meta-list"><li>Quildreen Motta</li></ul></div></div><div class="meta-field"><strong class="meta-field-title">Maintainers</strong><div class="meta-field-value"><ul class="meta-list"><li>Quildreen Motta &lt;queen@robotlolita.me&gt; (http://robotlolita.me/)</li></ul></div></div></div></div></div>
    <script>
void function() {
  var xs = document.querySelectorAll('.documentation pre code');
  for (var i = 0; i < xs.length; ++i) {
    xs[i].className = 'language-javascript code-block';
  }
}()
    </script>
    <script src="prism.js"></script>
  </body>
</html>